package com.hwg.shiliupro.utils;

import com.hwg.shiliupro.po.HomePage;
import com.hwg.shiliupro.po.User;

public class HomePageUtil {
    public static HomePage getHomePage(User user){
        HomePage homePage = new HomePage();
        homePage.setName(user.getName());
        homePage.setNumber(user.getNumber());
        homePage.setAcademy(user.getAcademy());
        homePage.setMail(user.getMail());
        homePage.setCampus(user.getCampus());
        homePage.setSex(user.getSex());
        homePage.setMajor(user.getMajor());
        homePage.setPhone(user.getPhone());
        homePage.setSgroup(user.getSgroup());
        return homePage;
    }
}
